package com.dormitory_springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author admin
 * @since 2024-01-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Notices implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String name;

    /**
     * 内容
     */
    private String content;

    /**
     * 发布时间
     */
    private String time;

    /**
     * 发布人
     */
    private String user;

    /**
     * 封面
     */
    private String img;

    /**
     * 1-简单的公告，2富文本
     */
    private Integer type;


}
